package com.hcandtx.Bms.service.Impl;

import java.sql.SQLException;
import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.hcandtx.Bms.bean.Ulog;
import com.hcandtx.Bms.mapper.ULogMapper;
import com.hcandtx.Bms.service.IUlogService;

@Service
public class UlogServiceImpl implements IUlogService {

	@Autowired
	ULogMapper ulogmapper;
	@Override
	public int addLog(Ulog log) throws SQLException {
		// TODO Auto-generated method stub
		 return ulogmapper.insert(log) ;
	}
	@Override
	public List<Ulog> findAll() {
		// TODO Auto-generated method stub
		return ulogmapper.findAll();
	}
	@Override
	public int deleteById(int id) {
		// TODO Auto-generated method stub
		return ulogmapper.deleteById(id);
	}

}
